You are here: Understanding the Meridian object model > About the Folder object > The Folder object methods > CopyProperties method

CopyProperties method

Copies all of the property values of the current folder to a specified folder except for an optional array of property names.

Syntax

CopyProperties(PropertySetName As String, TargetFolder As Folder, [ExcludeProperties] As String)
Parameters

Name

Description

PropertySetName

Name of the property set to copy.

TargetFolder

Folder object to which to copy the properties.

ExcludeProperties

Optional one dimension array of a property names to exclude from copying.

Remarks

The following example copies all properties in the property set MyPropSet to the specified folder object except for the properties named Prop1 and Prop2.

Folder.CopyProperties "MyPropSet", Folder, Array("Prop1", "Prop2")

Related concepts

About the Folder object